package com.newasia.shopping.dal.entitys.returnValue;

import com.newasia.shopping.dal.entitys.ItemSkuPerm;

import java.math.BigDecimal;

public class ItemDealerPerm extends ItemSkuPerm {

    private BigDecimal skuPrice;

    public BigDecimal getSkuPrice() {
        if(this.getType()==1){
            return this.getMoney();
        }
        return this.skuPrice.multiply(this.getPercentage());
    }
}
